import time

from page import JsYxPageHome


# 技师端隐形正畸

class JsYxHandle(JsYxPageHome):
    def click_menu_js_yx(self):  # 技师点击隐形正畸
        self.get_menu_js_yx_ele().click()

    def click_search1_js(self):  # 技师点击病例筛选
        self.get_search1_js_ele().click()

    def click_search2_js(self):  # 技师选择要筛选的病例“技师待接收”状态
        self.get_search2_js_ele().click()

    def click_search_js_button(self):  # 技师点击查询按钮
        self.get_search1_js_ele().click()

    def click_receive_js(self):  # 技师点击接收按钮
        self.get_receive_js_ele().click()

    def click_receive_js_button(self):  # 技师点击确认接收
        self.get_receive_js_button_ele().click()

    def click_details(self):  # 技师点击详情页面
        self.get_details_ele().click()

    def click_see_model_ele(self):  # 技师在详情页面点击查看
        self.get_see_model_ele().click()

    def text_see_model_success(self):  # 校验验模加载成功
        self.get_see_model_success_ele()
        time.sleep(1)

    def click_see_model_close(self):  # 关闭模型页面
        self.get_see_model_close_ele().click()
